﻿/*****************************************************************//**
 * @file    FITKViewAdaptorSketch2D.h
 * @brief   Adaptor for '2D sketch', such as mass point.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-12-16
 *********************************************************************/

#ifndef __FITKVIEWADAPTORSKETCH2D_H__
#define __FITKVIEWADAPTORSKETCH2D_H__

#include "FITKVTKViewAdaptorBase.h"

#include "FITKVTKGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for '2D sketch'.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-12-16
     */
    class FITKVTKGRAPHADAPTORAPI FITKViewAdaptorSketch2D : public FITKVTKViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKViewAdaptorSketch2D);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-12-16
         */
        explicit FITKViewAdaptorSketch2D() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-12-16
         */
        ~FITKViewAdaptorSketch2D() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-12-16
         */
        bool update() override;

    };

    // Regist 2D sketch adaptor
    Register2FITKViewAdaptorFactory(GeoSketch2D, Interface::FITKAbsGeoSketch2D, FITKViewAdaptorSketch2D);
}   // namespace Exchange

#endif // __FITKVIEWADAPTORSKETCH2D_H__
